package com.hmdp.test.lifecycle.event;

import org.springframework.context.ApplicationEvent;

/**
 * 事件监听对象, 存储发布的事件内容
 *
 * @author lizhihui
 */
public class StringEvent extends ApplicationEvent {

    private String str;

    public StringEvent(Object source) {
        super(source);
        str = source.toString();
    }

    public String getStr() {
        return str;
    }

}
